let elementStyle = document.createElement('div').style;

let vendor = (()=> {
    let transformNames = {
    webkit: 'wekitTransform',
    moz: 'MozTransform',
    ms: 'msTransform',
    o: 'OTransform',
    standard: 'transform',
    }

    for(let key in transformNames) {
    if(elementStyle[transformNames[key]] !== undefined) {
        return key;
    }
    }
    return false;
})()

export function prefixStyle(style) {
    if(vendor === false) {
        return false;
    }
    
    if(vendor === 'standard') {
        return style;
    }

    return vendor + style.charAt(0).toUpperCase() + style.substr(1);
}


